package com.eazy.lkv2.web.controller.system.listener;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import com.eazy.lkv2.core.db.ZQ;
import com.eazy.lkv2.web.controller.BaseController;
import com.eazy.lkv2.web.entity.EmailLog;

/**
 * @author apple
 * @date  2016-7-18 上午
 * 邮件发送记录功能
 */
@Controller
@RequestMapping("/email_log")
public class SystemEmailLogController extends BaseController<EmailLog, Integer> {

	/**
	 * 查询发送人，收货人，发送内容等信息
	 */
	@RequestMapping(value = "/index", method = { RequestMethod.POST, RequestMethod.GET })
	public ModelAndView index() {
		return getSuccess("sys/email_log","data",ZQ.commonResult("select * from email_log", null));
	}
}
